package com.kzw.oa.service.info;

import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kzw.core.service.hibernate.DefaultEntityManager;
import com.kzw.oa.model.info.ShortMessage;

@Service
@Transactional
public class MessageService extends DefaultEntityManager<ShortMessage, Long> {

	/**
	 * 更新delFlag值为1
	 * */
	public void removeShortMessage(String[] ids) {
		String idstr = StringUtils.join(ids, ",");
		String hql = "update ShortMessage set delFlag=1 where messageId in (" + idstr + ")"; 
		getEntityDao().batchExecute(hql);
	}

}
